package readImposeWriteConsult;

import se.sics.kompics.address.Address;
import BEB.BebDeliver;

public class WriteMessage extends BebDeliver {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private final int r;
	private final int reqid;
	private final int ts;
	private final int mrank;
	private final int value;
	
	/**
	 * @param source
	 * @param r
	 * @param reqid
	 * @param ts
	 * @param mrank
	 * @param value
	 */
	public WriteMessage(Address source, int r, int reqid, int ts, int mrank,
			int value) {
		super(source);
		this.r = r;
		this.reqid = reqid;
		this.ts = ts;
		this.mrank = mrank;
		this.value = value;
	}

	/**
	 * @return the r
	 */
	public int getR() {
		return r;
	}

	/**
	 * @return the reqid
	 */
	public int getReqid() {
		return reqid;
	}

	/**
	 * @return the ts
	 */
	public int getTs() {
		return ts;
	}

	/**
	 * @return the mrank
	 */
	public int getMrank() {
		return mrank;
	}

	/**
	 * @return the value
	 */
	public int getValue() {
		return value;
	}
}
